package com.yq.homework.day30.udp1;

import java.net.DatagramSocket;
import java.net.SocketException;

/**
 * @author 3307235355@qq.com
 * @description
 * @since 2022/06/30 20:11
 */
public class ReceiveWorker {
    public static void main(String[] args) throws SocketException {
        DatagramSocket socket = new DatagramSocket(9999);
        new Thread(new SendInfo(socket,"127.0.0.1",8888)).start();
        new Thread(new ReceiveInfo(socket)).start();
    }
}
